Technical Q&A

TB48 - Adding Color Icons to Menu Items (17-December-98)


Q: Is there a way to display color icons in menus?

A: Absolutely. Here are two ways:

  • If SetMenuItemIconHandle is available, use it. It affords you a great deal of flexibility.

  • If not, then simply make a 'cicn' resource with the proper ID for the relevant menu item, and the system will use the 'cicn' instead of a 1-bit icon ('ICON'). This trick works on any system with color QuickDraw. To support systems both with and without color QuickDraw, simply provide both 1-bit ('ICON') and color ('cicn') icon resources with the same ID.

Further Reference:

Inside Macintosh: Menu Manager
Inside Macintosh: Icon Services and Icon Utilities



-- Pete Gontier
Worldwide Developer Technical Support

Technical Q&As | Contents
Previous Question | Next Question

To contact us, please use the Contact Us page.